package com.dao.product;

import com.pojo.Admin;
import com.pojo.Member;
import com.pojo.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ProductMapper {
    Product selectProductById(int product_id);

    public int addByID(@Param("product_id") int product_id);

    public List<Product> getAdd(@Param("product_id") int product_id, @Param("description") String description);

    public List<Product> getproductList();

    List<Product> findproduct(String product_name);

    public List<Product> getproducandproductimgtList();

    public int updateproduct(@Param("product_id") int product_id,
                          @Param("product_name") String product_name,
                          @Param("product_s_price") String product_s_price,
                          @Param("product_price") String product_price);

    public int addproduct(@Param("product_id") int product_id,
                          @Param("product_name") String product_name,
                          @Param("product_s_price") String product_s_price,
                          @Param("product_price") String product_price,
                          @Param("product_create_time")Date product_create_time);
    public int delproduct(int product_id);
}
